import '@/assets/main.scss'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaState from 'pinia-plugin-persistedstate'

import App from './App.vue'
import router from './router'
import '@/stores/index.js'
const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(router)
app.use(createPinia().use(piniaState))

app.mount('#app')
